import React from "react";
import { useUsers } from "../utils/user";
import { IdSelect } from "./idSelect";

export default function UserSelect(
  props: React.ComponentProps<typeof IdSelect>
) {
  const { data: users } = useUsers();
  return users ? <IdSelect options={users || []} {...props} /> : null;
}
